<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Quiz
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: view.tpl 2010-07-02 17:53 michael $
 * @author     Michael
 */
?>

<?php if (!$this->action):?>
  <h2><?php echo $this->translate("Activity Item Not Found") ?></h2>
  <p>
    <?php echo $this->translate("The page you have attempted to access could not be found.") ?>
  </p>
<?php return ; endif;?>


<h2>
  <a href="<?php echo $this->action->getSubject()->getHref()?>">
    <?php echo $this->action->getSubject()->getTitle()?>
  </a>
</h2>


<?php

// includes translations, runonce javascript
echo $this->render('_header.tpl')
?>

<script type="text/javascript">

  Wall.runonce.add(function (){

    var feed = new Wall.Feed({
      feed_uid: '<?php echo $this->feed_uid?>',
      enableComposer: <?php echo ($this->enableComposer) ? 1 : 0?>,
      url_wall: '<?php echo $this->url(array('module' => 'core', 'controller' => 'widget', 'action' => 'index', 'name' => 'wall.feed'), 'default', true) ?>',
      last_id: <?php echo sprintf('%d', $this->firstid) ?>,
      subject_guid : '<?php echo $this->subjectGuid ?>'
    });
        
  });

</script>

<div class="wallFeed" id="<?php echo $this->feed_uid?>">

  <ul class="wall-feed feed" id="activity-feed">
    <li rev="item-<?php echo $this->action->action_id ?>" class="wall-action-item <?php if ($this->comment_pagination):?>action_comment_pagination<?php endif;?>" ><?php echo $this->wallActivity($this->action, array('noList' => true, 'comment_pagination' => $this->comment_pagination, 'comment_page' => $this->comment_page)); ?></li>
  </ul>

</div>